<%--
  Created by IntelliJ IDEA.
  User: s
  Date: 2021/12/6
  Time: 10:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--，注册失败五秒之后跳转到注册页面--%>
<% response.setHeader("refresh", "5;URL=register.jsp");%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<center>
    <font color="green" size="7"></font>
    <script>
        var a = 3;
        var time = setInterval(function(){
            var font = document.querySelector("font");
            a--;
            font.innerHTML = "注册失败，"+a+"秒后自动跳转到登录页面";
            if(a == 1){
                clearInterval(time);
            }
        },1000);
    </script>
</center>
</body>
</html>
